package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;


/**
 * 所有话题
 *
 * @author 20642
 */
@TableName(name = "tb_topic")
public class Topic {
    @TableId(value = "id")
    private Integer id;
    @TableField(value = "topic_name")
    private String topicName;

    public Topic() {
    }

    public Topic(Integer id, String topicName) {
        this.id = id;
        this.topicName = topicName;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return topicName
     */
    public String getTopicName() {
        return topicName;
    }

    /**
     * 设置
     *
     * @param topicName：
     */
    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    @Override
    public String toString() {
        return "Topic{id = " + id + ", topicName = " + topicName + "}";
    }
}
